// src/router/counter.ts
import { createRouter, createWebHistory} from 'vue-router'
import type {  RouteRecordRaw } from 'vue-router'

// 定义路由记录
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: import('@/page/home/index.vue')
    },
    {
        path: '/about',
        name: 'about',
        component: import('@/page/about/index.vue')
    }
]

// 创建路由实例
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router
